package com.lanou.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@org.springframework.stereotype.Controller("/test")
public class Test1Controller implements Controller {


    @Override
    // 处理请求
    public ModelAndView handleRequest
            (HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        System.out.println("Hello,SpringMVC!");

        return null;
    }
}
